import request from "@/utils/http";

// 获取收藏列表
export function GetCollectionByUserId(userId: string) {
  let data = { userId };
  return request({
    url: "/api/Map_ServiceCollection/appGetCollectionByUserId",
    method: "get",
    params: data,
  });
}

//添加收藏
export function AddCollection(userId: string, serviceId: string) {
  let data = { userId, serviceId };
  return request({
    url: "/api/Map_ServiceCollection/Add",
    method: "post",
    data,
  });
}

//取消收藏
export function DeleteCollection(Id: string) {
  let data = { Id };
  return request({
    url: "/api/Map_ServiceCollection/Delete",
    method: "post",
    data,
  });
}
